package nl.hengelsportmolenberg.boilies.client.presenter;

import com.google.gwt.user.client.ui.HasWidgets;
import com.google.gwt.user.client.ui.Widget;

public class TestPresenter implements Presenter {

	
	public interface Display {
	    void setData(String s);
	    Widget asWidget();
	}
	
	private final Display display;
	
	public TestPresenter(Display view) {
		this.display = view;
	}
	
	public void go(final HasWidgets container) {
		container.clear();
		container.add(display.asWidget());
		display.setData("alvin");
	}
	
}
